var mongoose = require("../db.js");
var schema = mongoose.Schema; //模型生成器(表生成器)
//建立表 并且指定字段
var commentSchema = new schema({
    avatar: String,
    createTime: String,
    content: String,
    name: String,
    userId: String,
    parent_id: String,
    root_id: String,
    blog_id:String,
});

//转成数据模型导出
module.exports = mongoose.model("commentinfo", commentSchema);
